﻿<%@ Page Title="" Language="C#" MasterPageFile="~/MasterPage.master" AutoEventWireup="true" CodeFile="Product.aspx.cs" Inherits="Product" %>

<asp:Content ID="Content1" ContentPlaceHolderID="head" Runat="Server">
    <style type="text/css">
        .auto-style1 {}
        #Content_ListProduct {
            width:100%;
        }
    </style>
    <link href="css/main-menuleft.css" rel="stylesheet" />
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="HeaderRowBot" Runat="Server">
    <div class="main">
        <div class="title"><asp:LinkButton ID="lbtnTitle" runat="server" ForeColor="White">Product</asp:LinkButton></div>
    </div>
</asp:Content>
<asp:Content ID="Content3" ContentPlaceHolderID="Content" Runat="Server">
    <div class="main">
    <div class="wrapper">
        <div class="menu-left">
            <div class="ContentTitle" style="margin-left:0px;background:#c53005;color:white;width:242px;float:left;line-height:40px;padding-left:20px"><asp:Label ID="Label1" runat="server" Text="Vendors :"></asp:Label></div>
        <div class="menu-subservice">
                <asp:Repeater ID="RVendor" runat="server">
                    <ItemTemplate>
                        <ul class="items" id='items<%# Eval("VendorID")%>'>
                            <li>
                                <asp:LinkButton ID="lbItem" runat="server" Text='<%#Eval("VendorName") %>' PostBackUrl='<%#"~/Product.aspx?VendorID="+Eval("VendorID")%>'></asp:LinkButton>
                            </li>
                        </ul>
                    </ItemTemplate>
                </asp:Repeater>
            </div>
            <div class="ContentTitle" style="margin-top:15px;float:left;margin-left:0px;background:#c53005;line-height:40px;width:242px;color:white;padding-left:20px"><asp:Label ID="Label2" runat="server" Text="Product Type :"></asp:Label></div>
        <div class="menu-subservice">
                <asp:Repeater ID="RProductType" runat="server">
                    <ItemTemplate>
                        <ul class="items" id='items<%# Eval("ProductTypeID")%>'>
                            <li>
                                <asp:LinkButton ID="lbItem" runat="server" Text='<%#Eval("TypeName") %>' PostBackUrl='<%#"Product.aspx?ProductTypeID="+Eval("ProductTypeID")%>'></asp:LinkButton>
                            </li>
                        </ul>
                    </ItemTemplate>
                </asp:Repeater>
            </div>
            </div>
        <input id="menu_active1" myinput="menu_active1" type="hidden" runat="server" value=""/>
        <input id="menu_active2" myinput="menu_active2" type="hidden" runat="server" value=""/> 
        <div class="payment" >

            <asp:DataList ID="ListProduct" runat="server" DataKeyField="ProductID" OnItemCommand="ListProduct_ItemCommand">
                <ItemTemplate>
                    <table style="width:100%;border-bottom:1px solid #c53005;padding-left:10px">
                        <tr>
                            <td class="auto-style1" colspan="2" rowspan="5">
                                <asp:ImageButton ID="ImageButton1" runat="server" Height="200px" Width="300px" ImageUrl='<%# "images/"+Eval("UrlImg") %>' CommandName="select" />
                            </td>
                            <td class="auto-style1" colspan="4">
                                <asp:LinkButton ID="LinkButton1" runat="server" Text='<%# Eval("ProductName") %>' CommandName="select" ForeColor="#C53005"></asp:LinkButton>
                            </td>
                        </tr>
                        <tr>
                            <td>
                                <asp:Label ID="Label6" runat="server" Text="No. :"></asp:Label>
                            </td>
                            <td>
                                <asp:Label ID="Label5" runat="server" Text='<%# Eval("ProductID") %>'></asp:Label>
                            </td>
                            <td>
                                &nbsp;</td>
                            <td>
                                &nbsp;</td>
                        </tr>
                        <tr>
                            <td>
                                <asp:Label ID="Label7" runat="server" style="font-weight: 700" Text="Vendors :"></asp:Label>
                            </td>
                            <td>
                                <asp:Label ID="Label8" runat="server" Text='<%# Eval("VendorName") %>'></asp:Label>
                            </td>
                            <td>&nbsp;</td>
                            <td>&nbsp;</td>
                        </tr>
                        <tr>
                            <td>
                                <asp:Label ID="Label3" runat="server" style="font-weight: 700" Text="Product Type :"></asp:Label>
                            </td>
                            <td>
                                <asp:Label ID="Label4" runat="server" Text='<%# Eval("TypeName") %>'></asp:Label>
                            </td>
                            <td>&nbsp;</td>
                            <td>&nbsp;</td>
                        </tr>
                        <tr>
                            <td colspan="2">
                                <asp:Label ID="Label9" runat="server" style="font-weight: 700" Text="Price :"></asp:Label>
                                &nbsp;<asp:Label ID="Label10" runat="server" Text='<%# Eval("Price") %>'></asp:Label>
                                $</td>
                            <td>&nbsp;</td>
                            <td>&nbsp;</td>
                        </tr>
                        <tr>
                            <td>
                                <asp:Label ID="Label12" runat="server" style="font-weight: 700" Text="Description :"></asp:Label>
                            </td>
                            <td>
                                &nbsp;</td>
                            <td colspan="4">
                                &nbsp;</td>
                        </tr>
                        <tr>
                            <td colspan="2">
                                <asp:Label ID="Label13" runat="server" Text='<%# Eval("Description") %>'></asp:Label>
                            </td>
                            <td colspan="4">
                                <asp:Label ID="Label11" runat="server" style="font-weight: 700" Text="Add to cart :"></asp:Label>
                                &nbsp;<asp:ImageButton ID="ImageButton2" runat="server" Height="30px" ImageUrl="~/images/shopping_cart.png" Width="30px" CommandName="addcart" />
                            </td>
                        </tr>
                    </table>
                </ItemTemplate>
            </asp:DataList>

        </div>
    </div>
        </div>
</asp:Content>

